package com.young.interfaces.coordin.model;


/**
 * 协调中心心跳包
 * Created by Admin on 2020/12/13.
 */
public class HeartbeatDTO {
    /**
     * 发送心跳的时间戳, 必填
     */
    private Long timestamp;
    /**
     * 版本号, 必填
     */
    private Long version;
    /**
     * 客户端ip
     * 为空则默认从request取来源ip
     */
    private String ip;
    /**
     * 客户端端口号
     * 为空则默认从request取来源端口
     */
    private Integer port;

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public Long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }

    public Long getVersion() {
        return version;
    }

    public void setVersion(Long version) {
        this.version = version;
    }

}
